<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <h2 class="sub-header">编辑标签</h2>
    <div class="table-responsive">
        <form #f="ngForm" (ngSubmit)="editHandle(f)">
            <div [ngClass]="['form-group',tag.valid?'':'has-error']">
                <label for="tag">标签名称</label>
                <input id="tag" name="tag" [autofocus]="tag.valid?false:true" #tag="ngModel" [(ngModel)]="target.name" required [ngClass]="['form-control']" placeholder="标签名称">
            </div>
            <button type="submit" class="btn btn-info">确认修改</button>
        </form>
    </div>
</div>